package com.guigu.tms.dispatch.service;


import com.guigu.tms.commons.aggregation.entity.TaskTransport;
import com.guigu.tms.commons.dispatch.entity.OrderClassifyAttach;
import com.guigu.tms.dispatch.dto.OrderLineSimpleDTO;
import com.guigu.tms.dispatch.dto.OrderLineTripsTruckDriverDTO;

import java.util.List;
import java.util.Map;

public interface IBusinessOperationService {

    /**
     * 创建运输任务 更新运单
     *
     * @param orderLineSimpleDTOS
     * @return 运输任务id
     */
    Map<String, TaskTransport> createTransportOrderTask(List<OrderLineSimpleDTO> orderLineSimpleDTOS);

    /**
     * 更新运输任务 创建司机作业单
     *
     * @param orderLineTripsTruckDrivers
     * @param transportTaskMap
     */
    void updateTransportTask(List<OrderLineTripsTruckDriverDTO> orderLineTripsTruckDrivers, Map<String, TaskTransport> transportTaskMap);
}

